package cate.common.table.task.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("永久历史")
public class HistoryRow extends ERow {

    @NoteField(value = "事件类型")
    public int event;

    @NoteField(value = "事件参数")
    public int param;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID", -1);
        this.event = xrw.getInteger("事件类型", 0);
        this.param = xrw.getInteger("事件参数", 0);
    }
}
